import request from '@/utils/request'

export function getSwiperList(params) {
  return request({
    url: 'gem/swiper',
    method: 'GET',
    params
  })
}

export function getGemList(params) {
  return request({
    url: 'gem/gem',
    method: 'GET',
    params
  })
}

export function getGemDetail(params) {
  return request({
    url: 'gem/gem/gem-detail',
    method: 'GET',
    params
  })
}

export function getCollectMoneyAddr(params) {
  return request({
    url: 'gem/gem/collect-money-addr',
    method: 'GET',
    params
  })
}

export function moveApply(params) {
  return request({
    url: '/user/moveApply',
    method: 'POST',
    data: params
  })
}

export function moveEdit(params) {
  return request({
    url: '/user/moveEdit',
    method: 'PUT',
    data: params
  })
}

export function serverApply(params) {
  return request({
    url: '/user/serverApply',
    method: 'POST',
    data: params
  })
}

export function serverEdit(params) {
  return request({
    url: '/user/serverEdit',
    method: 'PUT',
    data: params
  })
}

export function createNumber(params) {
  return request({
    url: '/user/createNumber',
    method: 'POST',
    data: params
  })
}
